const Generator = require('yeoman-generator')

module.exports = class extends Generator {
  promiting() {
    return this.prompt([
      {
        type: 'input',
        name: 'name',
        message: 'Your project name',
        default: this.appname
      }
    ]).then((answers) => {
      this.answers = answers
    })
  }

  wariting() {
    this.fs.copyTpl(
      this.templatePath(),
      this.destinationPath(),
      this.answers
    )
  }
}
